﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ShopOnline.BLL;
using POSSystem.BLL;

namespace ShopOnline.Controls.BusinessCard
{
    public partial class StepFinish : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (View_Customers.GetCurrentUser() != null && View_Customers.GetCurrentUser().RowCount > 0)
                {
                    txtContactName.Text = View_Customers.GetCurrentUser().CustomerName;
                    txtContactEmail.Text = View_Customers.GetCurrentUser().Email;
                    txtContactAddress.Text = View_Customers.GetCurrentUser().Address;
                    txtContactPhone.Text = View_Customers.GetCurrentUser().Phone;
                    buttonSaveAsDraft.Visible = true;
                }

                if (View_Users.GetCurrentUser() != null && View_Users.GetCurrentUser().RowCount > 0)
                    buttonSaveAsDraft.Visible = true;
            }
        }
    }
}